<?php include('base.php')?>
<?php $this->template->startblock('main') ?>
<form action="<?php echo site_url();?>post/updateprivilege" method="post">
<input type="hidden" name="p_id" value="<?php echo $p_id?>"/>
<h2>编辑资源</h2>
<table cellspacing="0" cellpadding="0" width="100%">
	<tr class="tr3">
		<td width="20%">资源名称：</td>
		<td><input type="text" class="input" size="30" value="<?php echo $p_name?>" name="p_name" /></td>
	</tr>
	<tr class="tr3">
		<td width="20%">资源分类：</td>
		<td>
			<select name="pc_id">
<?php 
foreach($catearr as $value){
?>
				<option value="<?php echo $value['pc_id']?>" <?php if($value['pc_id']==$pc_id) echo 'selected';?>><?php echo $value['pc_name']?></option>
<?php }?>
			</select>
		</td>
	</tr>
	<tr class="tr3">
		<td width="20%">资源链接：</td>
		<td><input type="text" class="input" size="30" value="<?php echo $p_action?>" name="p_action" /></td>
	</tr>
	<tr class="tr3">
		<td width="20%">显示顺序：</td>
		<td><input type="text" class="input" size="30" name="ordernum" value="<?php echo $ordernum?>"/></td>
	</tr>
	<tr class="tr3">
		<td width="20%">是否显示：</td>
		<td><input type="checkbox" name="show_nav" value="1" <?php if($show_nav) echo 'checked';?>/></td>
	</tr>
</table>
<br />
<center><input type="submit" value="提 交" class="btn" /> <input type="reset" value="重 置" class="btn" /></center><br/>
</form>
<?php $this->template->endblock() ?>